export interface Plan {
  id: number;
  name: string;
  coverImage?: string;
  createdAt: string;
  updatedAt: string;
}

export interface TimerRecord {
  id: number;
  planId: number;
  startTime: string;
  endTime: string;
  duration: number; // in seconds
  createdAt: string;
}

export interface DailyStats {
  date: string;
  totalDuration: number;
  recordCount: number;
}

export interface WeeklyStats {
  weekStart: string;
  totalDuration: number;
  recordCount: number;
}

export interface MonthlyStats {
  month: string;
  totalDuration: number;
  recordCount: number;
} 